<form action="/cart" method="POST">
  <button class="btn" type="submit">添加购物车</button>
  <input style="display: none;" type="hidden" name="productId" value="<%= product.id%>">
</form>